package top.oylan.manager.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.oylan.manager.entity.Comment;
import top.oylan.manager.entity.example.CommentExample;
import top.oylan.manager.tools.Pager;
@Mapper
public interface CommentMapper {
    long countByExample(CommentExample example);

    int deleteByExample(CommentExample example);

    int insert(Comment record);

    int insertSelective(Comment record);

    List<Comment> selectByExample(CommentExample example);

    int updateByExampleSelective(@Param("record") Comment record, @Param("example") CommentExample example);

    int updateByExample(@Param("record") Comment record, @Param("example") CommentExample example);

    List<Comment> selectByPager(Pager pager);

    int creaseLiked(@Param("itemId") Integer itemId,@Param("inc") int inc);
}